package com.wsd.jing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wsd.jing.entity.Dictionary;
import com.wsd.jing.request.CommonRequest;

import java.util.List;
import java.util.Map;

/**
 * All rights Reserved, Designed By www.tom.com
 *
 * @author tom
 * @version 1.0.0
 * @projectName: jing
 * @packageName: com.wsd.jing.service
 * @className: IDictionaryService
 * @description: 数据字典主服务类
 * @createDate 2022-11-20 07:41
 * @copyright 2022-11-20 07:41 www.tom.com Inc. All rights reserved.
 */
public interface IDictionaryService extends IService<Dictionary> {

    /**
     * @param dictionary:数据字典主
     * @return Boolean
     * @author tom
     * @description 新增数据字典主
     * @createDate 2022-11-20 07:41
     */
    Boolean insertDictionary(Dictionary dictionary);

    /**
     * @param dictionary:数据字典主
     * @return Boolean
     * @author tom
     * @description 修改数据字典主
     * @createDate 2022-11-20 07:41
     */
    Boolean updateDictionary(Dictionary dictionary);

    /**
     * @param id:id
     * @return Boolean
     * @author tom
     * @description 删除数据字典主
     * @createDate 2022-11-20 07:41
     */
    Boolean deleteDictionary(Integer id);

    /**
     * @param ids:id
     * @return Boolean
     * @author tom
     * @description 批量删除数据字典主
     * @createDate 2022-11-20 07:41
     */
    Boolean deleteDictionarys(String ids);

    /**
     * @param id:id
     * @return Dictionary
     * @author tom
     * @description 查询数据字典主
     * @createDate 2022-11-20 07:41
     */
    Dictionary getDictionary(Integer id);

    /**
     * @param commonRequest:排序参数
     * @param dictionary:数据字典主
     * @return List<Dictionary>
     * @author tom
     * @description 查询数据字典主列表
     * @createDate 2022-11-20 07:41
     */
    List<Dictionary> listDictionarys(CommonRequest commonRequest, Dictionary dictionary);

    /**
     * @param commonRequest:分页参数
     * @param dictionary:数据字典主
     * @return Map<String, Object>
     * @author tom
     * @description 分页查询数据字典主列表
     * @createDate 2022-11-20 07:41
     */
    Map<String, Object> listPageDictionarys(CommonRequest commonRequest, Dictionary dictionary);
}
